package nowcoder.other;

import java.util.Scanner;

/**
 * @author fance
 * @date 18-6-3 上午11:53
 */
public class Main {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        String[][] lcd = {{"._.","|.|","|_|"},
                {"...","..|","..|"},
                        {"._.","._|","|_."},
                                {"._.","._|","._|"},
                                        {"...","|_|","..|"},
                                                {"._.","|_.","._|"},
                                                        {"._.","|_.","|_|"},
                                                                {"._.","..|","..|"},
                                                                        {"._.","|_|","|_|"},
                                                                                {"._.","|_|","..|"}};
        while (in.hasNextInt()) {
            String nums = in.next();
            char[] res = nums.toCharArray();
            for (int i = 0; i < 3; i++) {
                for (int j = 0; j < res.length; j++) {
                    if (j == res.length - 1) {
                        System.out.print(lcd[res[j] - '0'][i]);
                    } else {
                        System.out.print(lcd[res[j] - '0'][i] + " ");
                    }
                }
                System.out.println();
            }


        }
    }

    /*private static List<Integer> getNum(int nums) {
        List<Integer> res = new ArrayList<>();
        int cnt = 0;
        while (nums != 0) {
            cnt++;
            res.add(nums % 10);
            nums /= 10;

        }
        Collections.reverse(res);
        res.add(cnt);
        return res;
    }*/
}
